package chapter03

/**
 * @program lu-scala01
 * @description: 访问权限
 * @author: zhanglu
 * @create: 2022-03-09 10:07:00
 */
object C04_ClassForAccess {

  def main(args: Array[String]): Unit = {
  }

}

class Persion {

  private var idCard = "3403021997"
  protected var name = "lu"
  var sex = "男"
  private [chapter03] var age = 18

  def printInfo {
    println(s"Persion ${idCard} ${name} ${sex} ${age}")
  }

}